package com.xiang.config;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class HqvtFilterConfig {
    @Bean
    public FilterRegistrationBean myFilterRegistrationBean(){
        FilterRegistrationBean filterRegistrationBean=new FilterRegistrationBean(new HqvtWrapperFilter());

        //添加过滤路径  范围匹配：/sys/common/*
        filterRegistrationBean.addUrlPatterns("/sys/common/sendCaptcha");
        return filterRegistrationBean;
    }
}
